import request from '@/utils/request'

//新增人员基础信息
export function members_create(para) {
	return request({
		url: '/members/create',
		method: 'post',
		data: para
	})
}

//编辑人员基础信息
export function members_update(para) {
	return request({
		url: '/members/update',
		method: 'post',
		data: para
	})
}

//删除人员基础信息
export function members_delete(para) {
	return request({
		url: '/members/delete',
		method: 'post',
		data: {
			ids: para
		}
	})
}

//人员基础信息列表
export function members_list(para) {
	return request({
		url: '/members/list',
		method: 'post',
		data: para
	})
}

//人员基础信息详情
export function members_view(id) {
	return request({
		url: '/members/view',
		method: 'get',
		params: {
			id
		}
	})
}

//人员仅出场纪录
export function members_inOrOut(data) {
	return request({
		url: '/members/inOrOut',
		method: 'post',
		data
	})
}

//根据身份证号码检测该人员是否已注册
export function members_getByIdCardNo(params) {
	return request({
		url: '/members/getByIdCardNo',
		method: 'get',
		params
	})
}

